import time
def fy(f):
    x = open(f,'r').readlines()
    c = []
    for i in x:
        c.append(int(i))
    return c
def fx(a):
    f = True
    while f :
        f = False
        for i in range(len(a)-1):
            if a[i]<a[i+1]:
                a[i],a[i+1] =a[a+1],a[i]
                f= True
    return a
doc = fy('m1_sorted.txt')
doc2 = fy('m2_reverse.txt')
doc3 = fy('m3_shuffle.txt')
print(fx(doc),fx(doc2),fx(doc3))
